<template>
  <div class="main">
    <div>
      {{ name }}
    </div>
    <el-switch v-model="value" active-color="deepskyblue" inactive-color="grey">
    </el-switch>
  </div>
</template>

<script>
export default {
  props: {
    name: String,
  },
  data() {
    return {
      value: false,
    };
  },
};
</script>

<style scoped>
.main {
  background-color:#C0C4CC;
  height: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  margin: 2px;
  border-radius: 5px;
}
</style>